]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
altTab: Fix the appSwitcher's allocation
authorAdel Gadllah <adel.gadllah@gmail.com>
Sun, 17 Apr 2011 18:17:26 +0000 (20:17 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Tue, 26 Apr 2011 19:10:45 +0000 (21:10 +0200)
A typo in AltTabPopup._allocate was causing the allocation to be wrong
which broke icon scrolling, so fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=647807

js/ui/altTab.js

index ed541b31663f5c387aa913b03a64a406a1de9b58..43b75523068363e34cd9cf42f493a82c295c9bb8 100644 (file)
@@ -87,7 +87,7 @@ AltTabPopup.prototype = {
         let [childMinHeight, childNaturalHeight] = this._appSwitcher.actor.get_preferred_height(primary.width - hPadding);
         let [childMinWidth, childNaturalWidth] = this._appSwitcher.actor.get_preferred_width(childNaturalHeight);
         childBox.x1 = Math.max(primary.x + leftPadding, primary.x + Math.floor((primary.width - childNaturalWidth) / 2));
-        childBox.x2 = Math.min(primary.x + primary.width - hPadding, childBox.x1 + childNaturalWidth);
+        childBox.x2 = Math.min(primary.x + primary.width - rightPadding, childBox.x1 + childNaturalWidth);
         childBox.y1 = primary.y + Math.floor((primary.height - childNaturalHeight) / 2);
         childBox.y2 = childBox.y1 + childNaturalHeight;
         this._appSwitcher.actor.allocate(childBox, flags);